<?php

namespace app\product\controller;

use app\common\controller\PCBase;
use app\common\controller\DBase;
use app\common\library\Upload;
use app\product\logic\InventoryLogic;
use Throwable;
use  think\App;
class Inventory extends PCBase
{

    /**
     * @desc   获取海外仓库列表
     * @author luckyXiong
     * @date   2024-08-02
     */
    public function index()
    {
        $params     = $this->request->post();
        return  (new InventoryLogic())->getList($params);
    }


    /**
     * @desc   编辑海外仓库列表
     * @author luckyXiong
     * @date   2024-08-02
     */
    public function  editIndex()
    {
        $params     = $this->request->post();
        return       (new InventoryLogic())->editIndex($params);
    }



    /**
     * @desc   新增海外仓库列表
     * @author luckyXiong
     * @date   2024-08-02
     */
    public function  addIndex()
    {
        $params     = $this->request->post();
        return       (new InventoryLogic())->addIndex($params);
    }



    /**
     * @desc   删除数据
     * @author luckyXiong
     * @date   2024-08-04
     */
    public function deleteIndex(){
        $params     = $this->request->post();
        return       (new InventoryLogic())->deleteIndex($params);
    }


    /**
     * @desc   获取采购报表数据
     * @author luckyXiong
     * @date   2024-08-04
     */
    public function getReportIndex(){
        $params     = $this->request->post();
        $group_id   = $this->getAdminAuthId();
        $params['admin_group_id'] = $group_id;
        return       (new InventoryLogic())->getReportIndex($params);
    }












}